package chat;

public enum CommandType { None(0), Me(1), TeamServerMessage(2);
	
	private int value;
	
	private CommandType(int value) 
	{
	        this.value = value;
	}
	public int getValue()
	{
		return value;
	}
	public static CommandType fromInt(int code) {
		
		switch(code) 
		{
			case 0:
				return None;
			case 1:
				return Me;
			case 2:
				return TeamServerMessage;
			}
		return null;
	}
}
